package org.quartz.impl.jdbcjobstore;

import java.sql.Connection;

import org.quartz.JobPersistenceException;
import org.quartz.SchedulerConfigException;
import org.quartz.spi.ClassLoadHelper;
import org.quartz.spi.SchedulerSignaler;

public class JobStoreTX extends JobStoreSupport {

	public void initialize(ClassLoadHelper loadHelper, SchedulerSignaler signaler) throws SchedulerConfigException {

		super.initialize(loadHelper, signaler);

		getLog().info("JobStoreTX initialized.");
	}

	protected Connection getNonManagedTXConnection() throws JobPersistenceException {
		return getConnection();
	}

	protected Object executeInLock(String lockName, TransactionCallback txCallback) throws JobPersistenceException {
		return executeInNonManagedTXLock(lockName, txCallback);
	}
}
// EOF
